package com.tedu.myblog.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tedu.myblog.dao.FriendLinkDao;
import com.tedu.myblog.entity.FriendLink;
import com.tedu.myblog.service.FriendLinkService;

@Service
public class FriendLinkServiceImpl implements FriendLinkService{
	 @Autowired
	    private FriendLinkDao friendLinkDao;

	    @Override
	    public List<FriendLink> listFriendLink() {
	        return friendLinkDao.listFriendLink();
	    }

	    @Override
	    public int saveFriendLink(FriendLink friendLink) {
	        return friendLinkDao.saveFriendLink(friendLink);
	    }

	    @Override
	    public FriendLink getFriendLinkByBlogaddress(String blogaddress) {
	        return friendLinkDao.getFriendLinkByBlogaddress(blogaddress);
	    }

	    @Override
	    public FriendLink getFriendLink(Long id) {
	        return friendLinkDao.getFriendLink(id);
	    }

	    @Override
	    public int updateFriendLink(FriendLink friendLink) {
	        return friendLinkDao.updateFriendLink(friendLink);
	    }

	    @Override
	    public void deleteFriendLink(Long id) {
	        friendLinkDao.deleteFriendLink(id);
	    }
	}